﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BookTheBook.Data.Model.Book>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Id</div>
        <div class="display-field"><%= Html.Encode(Model.Id) %></div>
        
        <div class="display-label">ISBN</div>
        <div class="display-field"><%= Html.Encode(Model.ISBN) %></div>
        
        <div class="display-label">Title</div>
        <div class="display-field"><%= Html.Encode(Model.Title) %></div>
        
        <div class="display-label">Author</div>
        <div class="display-field"><%= Html.Encode(Model.Author) %></div>
        
        <div class="display-label">Publisher</div>
        <div class="display-field"><%= Html.Encode(Model.Publisher) %></div>
        
        <div class="display-label">Edition</div>
        <div class="display-field"><%= Html.Encode(Model.Edition) %></div>
        
        <div class="display-label">Currency</div>
        <div class="display-field"><%= Html.Encode(Model.Currency) %></div>
        
        <div class="display-label">DetailsUrl</div>
        <div class="display-field"><%= Html.Encode(Model.DetailsUrl) %></div>
        
        <div class="display-label">Price</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.Price)) %></div>
        
        <div class="display-label">Rating</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:F}", Model.Rating)) %></div>
        
        <div class="display-label">PublishYear</div>
        <div class="display-field"><%= Html.Encode(String.Format("{0:g}", Model.PublishYear)) %></div>
        
        <div class="display-label">Description</div>
        <div class="display-field"><%= Html.Encode(Model.Description) %></div>
        
    </fieldset>
    <p>
        <%= Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> |
        <%= Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

